package hutool;

import cn.hutool.core.convert.Convert;
import cn.hutool.core.lang.TypeReference;
import org.junit.Test;

import java.util.Arrays;
import java.util.Date;
import java.util.List;

public class ConvertTest {
   @Test
   public void test1(){
       String[] arr = new String[]{"1", "2", "3"};
       Convert.toList(Integer.class,arr).stream().forEach(s->{
           System.out.println(s+1);
       });
       Date date=Convert.toDate("2021/08/22 10:22:11");
       System.out.println(date);

       Object[] a = { "a", "你", "好", "", 1 };
       List<String> list = Convert.convert(new TypeReference<List<String>>() {}, a);

   }
}
